//行政区图层
var baseUrl='http://202.112.95.178:6080/arcgis/rest/services/liaoning/work/MapServer/';
var baseUrlFea='http://202.112.95.178:6080/arcgis/rest/services/liaoning/work/FeatureServer/';
var shi='37';//市/
var xian='38';//县
var xiang='39';//乡镇
var cun='40';//村
var guiji='0';
var serverUrl='http://localhost:6080';


//var xcglMenu,xcdhMenu,zfwlMenu,dbfxMenu,xzqMenu,tjbbMenu,xtglMenu,helpMenu;//定义各功能模块菜单面板


var itemXzqShi,itemXzqXian,itemXzqXiang,ItemXzqCun,allItemXzq,poiLocation,huifang;//各级行政区列表
itemXzqShi=[];

var map;//全局map对象

var ctxMenuForGraphics,ctxMenuForMap,selected;//右击菜单





//删除数组指定数组元素
Array.prototype.remove = function(val) {
    var index = this.indexOf(val);
    if (index > -1) {
        this.splice(index, 1);
    }
};
